﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using ArbabTravelsERP.DAL;

namespace ArbabTravelsERP.DAL
{
    public class Master
    {
        DataUtility du = new DataUtility();
        
        public DataTable GetCountryStateCity()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "COUNTRY_STATE_CITY_MASTER");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetAvailingType()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "AvailingType");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetSource()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Source");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetStatus()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Status");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetRequirement()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Requirement");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetVisaType()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "VisaType");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetMaritalStatus()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "MaritalStatus");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetNationality()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Nationality");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetLocation()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Location");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetReligion()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Religion");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetLanguages()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Languages");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetAddressType()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "AddressType");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetUniversity()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "University");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetCompany()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Company");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetDesignation()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Designation");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetIndustry()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Industry");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetEducation()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Education");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetSpecialization()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Specialization");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetVehicleType()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Vehicle_Type");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetBranch()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "Branch");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetUserType()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "UserType");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetModeOfInterview()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "MODE_OF_INTERVIEW");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }

        public DataTable GetCurrency()
        {
            SqlParameter[] param = new SqlParameter[1];
            SqlParameter CONDITIONAL_OPERATOR = new SqlParameter("@CONDITIONAL_OPERATOR", "CURRENCY");

            param[0] = CONDITIONAL_OPERATOR;
            return du.ExecuteDataTable("StoredProcedure", "PROC_ALL_MASTER", param);
        }
    }
}